import React from "react"
import s from "./TimeImg.module.css"

function TimeImg({ date }) {
  const dateTime = date || ""
  const front = dateTime.slice(0, 7)
  const end = dateTime.slice(-2)
  return (
    <div className={s.timeImg}>
      <div className={s.font}>{front}</div>
      <div className={s.end}>{end}</div>
    </div>
  )
}

export default TimeImg
